package 士兵;

public class Main {
    public static void main(String[] args) {
        Soldier s1 =new Soldier("司令","傅粟海","指挥");
        Soldier s2 =new Soldier("副司令","1","吃饭");
        Soldier s3 =new Soldier("排长","2","睡觉");
        Soldier s4 =new Soldier("营长","3","打炮");
        Soldier s5 =new Soldier("士兵","4","射箭");
        Soldier s6 =new Soldier("士兵","5","打枪");
        Soldier s7 =new Soldier("士兵","6","逃跑");
        Soldier s8 =new Soldier("士兵","7","1");
        Soldier s9 =new Soldier("士兵","8","2");
        Soldier s10 =new Soldier("士兵","9","3");
        Arm arm =new Arm("007","1");


        arm.addSoldier(s1, 0);
        arm.addSoldier(s2, 1);
        arm.addSoldier(s3, 2);
        arm.addSoldier(s4, 3);
        arm.addSoldier(s5, 4);
        arm.addSoldier(s6, 5);
        arm.addSoldier(s7, 6);
        arm.addSoldier(s8, 7);
        arm.addSoldier(s9, 8);
        arm.addSoldier(s10, 9);
        arm.listAllSoldiers();
    }
}
